package com.service;

import com.entity.Schedule;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author Milburn
 * @create 2021-03-02 12:17
 */
public interface IScheduleService {

    Schedule findScheduleById(long schedule_id);
    Integer addSchedule(Schedule schedule);
    Integer updateSchedule(Schedule schedule);
    Integer deleteSchedule(long schedule_id);
    Integer addScheduleRemain(long schedule_id);
    Integer delScheduleRemain(long schedule_id);
    PageInfo<Schedule> findScheduleByMovieName(Integer page, Integer limit, String movie_name);
    PageInfo<Schedule> findOffScheduleByMovieName(Integer page,Integer limit,String movie_name);
    PageInfo<Schedule> findAllSchedules(Integer page,Integer limit);
    PageInfo<Schedule> findAllScheduleByState(Integer page,Integer limit,int schedule_state);
    List<Schedule> findScheduleByCinemaAndMovie(long cinema_id, long movie_id);
    List<Schedule> findScheduleByCinemaIdAndMovieId(long cinema_id,long movie_id);
}
